const http = require('node:http')
const fs = require('node:fs')
const server = http.createServer();
server.on('request', (req, res) => {
    res.writeHead(200, { 'Content-Type': 'text/html' });
    const htmlContent = fs.readFileSync('./index.html', 'utf8');
    res.end(htmlContent);
});

server.listen(8008, () => {
    console.log('server started');
})